//授权提示
import { useState, useEffect } from "react";
import CommonModal from "@/components/CommonModal";
import { Button } from "antd";
import { useLocation, useNavigate } from "react-router-dom";

const AuthorizeInfo = ({ visible, handleCancel, handleOk }) => {
	const navigate = useNavigate();

	return (
		<CommonModal
			footer={
				<Button
					onClick={() => {
						navigate("/views/goods/system", { state: { dialog: '1' } });
						handleCancel();
					}}
					type="primary"
				>
					前往设置
				</Button>
			}
			minHeight="79px"
			title={`提示`}
			visible={visible}
			onCancel={handleCancel}
			onOk={handleOk}
			width="449px"
		>
			<p>请先前往系统商品页面,选择设置功能中的自动生成规则后再授权店铺</p>
		</CommonModal>
	);
};

export default AuthorizeInfo;
